﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Texfina.Core.Data;

namespace Texfina.DOQry.Co
{
    public class DUbigeo
    {
        public static IDataReader MG_Pais_qry01()
        {
            DBAccess db = new DBAccess();

            return db.ExecuteReader("MG_Pais_qry01");
        }

        public static IDataReader MG_Departamento_qry01(String pais)
        {
            DBAccess db = new DBAccess();
            db.AddParameter("@Pais", pais);
            return db.ExecuteReader("MG_Departamento_qry02");
        }

        public static IDataReader MG_Provincia_qry01(String pais, String depa)
        {
            DBAccess db = new DBAccess();
            db.AddParameter("@Pais", pais);
            db.AddParameter("@Depa", depa);
            return db.ExecuteReader("MG_Provincia_qry01");
        }

        public static IDataReader MG_Distrito_qry01(String pais, String depa, String prov)
        {
            DBAccess db = new DBAccess();
            db.AddParameter("@Pais", pais);
            db.AddParameter("@Depa", depa);
            db.AddParameter("@Prov", prov);
            return db.ExecuteReader("MG_Distrito_qry01");
        }



    }
}
